import  httpInstance  from '@/utils/http'

// 登录方法
export const login = (data) => {
  return httpInstance({
    url: '/api/login',
    method: 'post',
    data: data // 登录数据
  })
}

// 获取用户信息
export const getUserInfo = () => {
  return httpInstance({
    url: '/api/user/info',
    method: 'get'
  })
}